home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Shareware City / Updaters / CDK 7.0.4 Update / PowerPC IOStreams Project / PPCBuild.ts < prev    next >
Encoding:
Text File  |  1994-07-26  |  1.5 KB  |  58 lines  |  [TEXT/KAHL]

  1. #
  2. #    Script to build a PowerPC application built with the Symantec C++ CDK
  3. #    Copyright (c) 1994 Symantec Corporation. All Rights Reserved.
  4. #
  5. #    Arguments:
  6. #
  7. #        1. Pathname of the object directory
  8. #        2. Name of the application
  9. #
  10. #    The project name is assumed to be the application name plus ".π"
  11. #    You will need to modify this script so that the creator type for
  12. #    your application is correct.
  13. #
  14. Set LinkOptions        "-sym on -warn -main __cplusstart"
  15. Set MakeSYMOptions    "-sym on -i :: -r"
  16.  
  17. Set XCOFFname        "'{2}.xcoff'"
  18. Set SYMname            "'::{2}.SYM'"
  19. Set RsrcFileName    "'::{2}.π.rsrc'"
  20. Set AppName            "'::{2}'"
  21. Set Creator            'PETE'
  22.  
  23. Set tempDir            `Directory`
  24.  
  25. # insure directory changes against errors
  26. Set exit 1
  27.     Directory "{1}"
  28.     Begin
  29.         PPCLink {LinkOptions}  -o {XCOFFname} `files ≈.o`
  30.         Set ErrorResult {Status}
  31.         If !{ErrorResult}
  32.             MakeSYM {XCOFFname} {MakeSYMOptions} -o {SYMname}
  33.             Set ErrorResult {Status}
  34.             If !{ErrorResult}
  35.                 SetFile {SYMname} -c 'R2Db' -t 'MPSY'
  36.                 MakePEF {XCOFFname} -o {AppName} ∂
  37.                      -l "AppleScriptLib.xcoff.o=AppleScriptLib" ∂
  38.                      -l "InterfaceLib.xcoff.o=InterfaceLib" ∂
  39.                      -l "MathLib.xcoff.o=MathLib" ∂
  40.                      -l "ObjectSupportLib.xcoff.o=ObjectSupportLib" ∂
  41.                      -l "QuickTimeLib.xcoff.o=QuickTimeLib" ∂
  42.                      -ft 'APPL' -fc "{Creator}"
  43.                 Set ErrorResult {Status}
  44.                 If !{ErrorResult}
  45.                     Duplicate -r -y {RsrcFileName} {AppName}
  46.                 End
  47.             End
  48.         End
  49.     End ∑ PPCBuild.out
  50. Set exit 1
  51. Directory "{tempDir}"
  52.  
  53. If {ErrorResult}
  54.     Exit {ErrorResult}
  55. Else
  56.     Echo "Done"
  57. End
  58.